# 猜数字
import random
num = random.randint(1, 100)
while True:
    guess = int(input("请输入一个数字:"))
    if guess > num:
        print("猜大了")
    elif guess < num:
        print("猜小了")
    else:
        print("猜对了")
        break
print("游戏结束")
